import * as ActionTypes from './ActionTypes.js'
import AppDispatcher from './AppDispatcher'

export const increment = (counterCaption) => {
    console.log("###increment###");
    AppDispatcher.dispatch({
        type: ActionTypes.TYPE_INCREMENT,
        counterCaption:counterCaption
    });
}

export const decrement = (counterCaption) => {
    console.log("###decrement###");
    AppDispatcher.dispatch({
        type: ActionTypes.TYPE_DECREMENT,
        counterCaption:counterCaption
    });
};